package stub.datasvStub;

import po.CourseAssistPO;
import po.CourseBasicPO;
import po.CoursePublishPO;
import resultmessage.CourseProduceRM;
import datasv.courseProduce_datasv.CourseProduceDatasv;

public class CourseProduceDatasvStub implements CourseProduceDatasv{
	CourseBasicPO courseBasicPO;
	CoursePublishPO coursePublishPO;
	CourseAssistPO courseAssistPO;
	
	public CourseProduceDatasvStub(CourseBasicPO courseBasicPO, 
			CoursePublishPO coursePublishPO,CourseAssistPO courseAssistPO){
		courseBasicPO = this.courseBasicPO;
		coursePublishPO = this.coursePublishPO;
		courseAssistPO = this.courseAssistPO;
	}

	@Override
	public CourseProduceRM addCourseBasic(CourseBasicPO po) {
		// TODO Auto-generated method stub
		if(po.getCourseId().equals(courseBasicPO.getCourseId())){
		return CourseProduceRM.COURSEBASIC_EXIT;
	}
	return CourseProduceRM.SUCCESS;
	}

	@Override
	public CourseProduceRM deleteCourseBasic(String courseID) {
		// TODO Auto-generated method stub
		if(courseID.equals(courseBasicPO.getCourseId())){
			return CourseProduceRM.SUCCESS;
		}
		return CourseProduceRM.COURSEBASIC_NOT_EXIT;
	}

	@Override
	public CourseProduceRM updateCourseBasic(CourseBasicPO po) {
		// TODO Auto-generated method stub
		if(po.getCourseId().equals(courseBasicPO.getCourseId())){
		courseBasicPO = po;
		return CourseProduceRM.SUCCESS;
	}
	return CourseProduceRM.COURSEBASIC_NOT_EXIT;
	}

	@Override
	public CourseBasicPO getCourseBasic(String courseID) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CourseProduceRM addCoursePublish(CoursePublishPO po) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CourseProduceRM deleteCoursePublish(String courseID) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CourseProduceRM updateCoursePublish(CoursePublishPO po) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CoursePublishPO getCoursePublish(String courseID) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CourseProduceRM addCourseAssist(CourseAssistPO po) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CourseProduceRM updateCourseAssist(CourseAssistPO po) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CourseProduceRM deleteCourseAssist(String courseID) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CourseAssistPO getCourseAssist(String courseID) {
		// TODO Auto-generated method stub
		return null;
	}
	
//	@Override
//	public CourseProduceRM addCourseBasic(CourseBasicPO po) {
//		// TODO Auto-generated method stub
//		if(po.getCourseId().equals(courseBasicPO.getCourseId())){
//			return CourseProduceRM.COURSEBASIC_EXIT;
//		}
//		return CourseProduceRM.SUCCESS;
//	}
//
//	@Override
//	public CourseProduceRM deleteCourseBasic(String courseID) {
//		// TODO Auto-generated method stub
//		if(courseID.equals(courseBasicPO.getCourseId())){
//			return CourseProduceRM.SUCCESS;
//		}
//		return CourseProduceRM.COURSEBASIC_NOT_EXIT;
//	}
//
//	@Override
//	public CourseProduceRM updateCourseBasic(CourseBasicPO po) {
//		// TODO Auto-generated method stub
//		if(po.getCourseId().equals(courseBasicPO.getCourseId())){
//			courseBasicPO = po;
//			return CourseProduceRM.SUCCESS;
//		}
//		return CourseProduceRM.COURSEBASIC_NOT_EXIT;
//	}
//
//	@Override
//	public CourseBasicPO getCourseBasic(String courseID) {
//		// TODO Auto-generated method stub
//		return courseBasicPO;
//	}
//
//	@Override
//	public CourseProduceRM addCoursePublish(CoursePublishPO po) {
//		// TODO Auto-generated method stub
//		if(po.getCourseID().equals(coursePublishPO.getCourseID())){
//			return CourseProduceRM.COURSEPUBLISH_EXIT;
//		}
//		return CourseProduceRM.SUCCESS;
//	}
//
//	@Override
//	public CourseProduceRM deleteCoursePublish(String courseID) {
//		// TODO Auto-generated method stub
//		if(courseID.equals(coursePublishPO.getCourseID())){
//			return CourseProduceRM.SUCCESS;
//		}
//		return CourseProduceRM.COURSEPUBLISH_NOT_EXIT;
//	}
//
//	@Override
//	public CourseProduceRM updateCoursePublish(CoursePublishPO po) {
//		// TODO Auto-generated method stub
//		if(po.getCourseID().equals(coursePublishPO.getCourseID())){
//			coursePublishPO = po;
//			return CourseProduceRM.SUCCESS;
//		}
//		return CourseProduceRM.COURSEPUBLISH_NOT_EXIT;
//	}
//
//	@Override
//	public CoursePublishPO getCoursePublish(String courseID) {
//		// TODO Auto-generated method stub
//		return coursePublishPO;
//	}
//
//	@Override
//	public CourseProduceRM addCourseAssist(CourseAssistPO po) {
//		// TODO Auto-generated method stub
//		if(po.getCourseID().equals(courseAssistPO.getCourseID())){
//			return CourseProduceRM.COURSEASSIST_EXIT;
//		}
//		return CourseProduceRM.SUCCESS;
//	}
//
//	@Override
//	public CourseProduceRM updateCourseAssist(CourseAssistPO po) {
//		// TODO Auto-generated method stub
//		if(po.getCourseID().equals(courseAssistPO.getCourseID())){
//			courseAssistPO = po;
//			return CourseProduceRM.SUCCESS;
//		}
//		return CourseProduceRM.COURSEASSIST_NOT_EXIT;
//	}
//
//	@Override
//	public CourseProduceRM deleteCourseAssistant(String courseID) {
//		// TODO Auto-generated method stub
//		if(courseID.equals(courseAssistPO.getCourseID())){
//			return CourseProduceRM.SUCCESS;
//		}
//		return CourseProduceRM.COURSEASSIST_NOT_EXIT;
//	}
//
//	@Override
//	public CourseAssistPO getCourseAssist(String courseID) {
//		// TODO Auto-generated method stub
//		return courseAssistPO;
//	}

}
